package com.bestcem.xm.ticket.dao.mapper;

import com.bestcem.xm.ticket.entity.mysql.TicketNotifyConfigDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

/**
 * @author zhangfeng <feng.zhang@idiaoyan.com>
 * @version v1.0
 * @date 2021/9/22 11:46
 */
@Mapper
public interface TicketNotifyConfigDaoMapper {

    TicketNotifyConfigDO findByTicketNotifyConfigId(String ticketNotifyConfigId);

    List<TicketNotifyConfigDO> listByTicketConfigId(String ticketConfigId);

    List<TicketNotifyConfigDO> listBySmtpIdList(List<String> ids);

    void updateSmtpIdBySmtpIdList(List<String> ids, Date updateTime);

    List<TicketNotifyConfigDO> listByTicketNotifyConfigIdList(List<String> ids);

    void insert(TicketNotifyConfigDO ticketNotifyConfigDO);

    TicketNotifyConfigDO findByTicketConfigIdAndEvent(String ticketConfigId, Integer event);

    void updateByTicketNotifyConfigId(TicketNotifyConfigDO ticketNotifyConfigDO);
}
